﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.CommModel
{
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class RootDossierinfo
    {
        /// <summary>
        /// 标识信息
        /// </summary>
        [XmlElementAttribute("dossierinfo", IsNullable = false)]
        public List<DossierinfoModel> DossierinfoList { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [XmlAttribute("type")]
        public string Type { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [XmlAttribute("name")]
        public string Name { get; set; }

    }
    /// <summary>
    /// 标识信息
    /// </summary>
    public class DossierinfoModel
    {
        /// <summary>
        /// 文书类型
        /// </summary>
        [XmlAttribute("code")]

        public string Code { get; set; }

        /// <summary>
        /// 文书类型中文名称
        /// </summary>
        [XmlAttribute("name_ch")]
        public string Name { get; set; }

        /// <summary>
        /// 是否为覆盖模式  1：覆盖模式，0：优选模式
        /// </summary>
        [XmlAttribute("iscover")]
        public string Iscover { get; set; }

        /// <summary>
        /// 标识
        /// </summary>
        [XmlElementAttribute("signgroup", IsNullable = false)]
        public List<Singgroup> SinggroupList { get; set; }
    }

    /// <summary>
    /// 标识组
    /// </summary>
    public class Singgroup
    {
        /// <summary>
        /// 标识优先级
        /// </summary>
        [XmlAttribute("code")]
        public string Code { get; set; }

        /// <summary>
        /// 标识信息
        /// </summary>
        [XmlElementAttribute("dossiersign", IsNullable = false)]
        public DossierSign dossierSign { get; set; }

    }

    /// <summary>
    /// 标识信息组
    /// </summary>
    public class DossierSign
    {
        /// <summary>
        /// 标识路径
        /// </summary>
        [XmlAttribute("filed")]
        public string Filed { get; set; }

        /// <summary>
        /// 比较类型 1.数字类型比较，2.时间类型比较，3.使用文书创建时间比较
        /// </summary>
        [XmlAttribute("compareType")]
        public string CompareType { get; set; }
        /// <summary>
        /// 获取值
        /// </summary>
        public string value { get; set; }
        /// <summary>
        /// 标识信息
        /// </summary>
        [XmlElementAttribute("dossiersign", IsNullable = false)]
        public DossierSign dossierinfoModel { get; set; }
    }
}
